<?php
class Requester {
	// Runs through and fills them with appropriate data from $_REQUEST if available.
	public function fillFromRequest($arrBindings = array()) {
		foreach ($arrBindings as $sObjectVar => $sRequestVar) {
			if (!property_exists($this, $sObjectVar)) {
				throw new Exception($sObjectVar);
			}
			$this->{$sObjectVar} = $_REQUEST[$sRequestVar];
		}
	}
}
?>
